//
//  InfoLabelCell.m
//  SmileWeather
//
//  Created by 范琦 on 15/9/20.
//  Copyright (c) 2015年 陶天海. All rights reserved.
//

#import "InfoLabelCell.h"

@implementation InfoLabelCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
      
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(20, 0, kWidth - 40, 1)];
        lineView.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:lineView];
        
        self.bookImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"xingyunjiedu@3x"]];
        self.bookImage.frame = CGRectMake(lineView.frame.origin.x, lineView.frame.origin.y + 26, 20, 20);
        [self.contentView addSubview:_bookImage];
        
        self.fortuneL = [[UILabel alloc] initWithFrame:CGRectMake(self.bookImage.frame.origin.x + 25, lineView.frame.origin.y + 26, 100, 20)];
        //self.fortuneL.backgroundColor = [UIColor redColor];
        self.fortuneL.text = @"< 星运解读 >";
        self.fortuneL.font = [UIFont systemFontOfSize:15];
        self.fortuneL.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_fortuneL];
        
        self.intrduceLabel = [[UILabel alloc] initWithFrame:CGRectMake(lineView.frame.origin.x, self.bookImage.frame.origin.y + 26, kWidth - 40, 120)];
       //self.intrduceLabel.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_intrduceLabel];
        self.intrduceLabel.textColor = [UIColor whiteColor];
        self.intrduceLabel.font = [UIFont systemFontOfSize:14];
        self.intrduceLabel.numberOfLines = 0;
    
    }
    return self;
}
-(void)setModel:(FortuneDetailModel *)model{
    self.intrduceLabel.text = model.intro;
    
}
















- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
